<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<script type="text/javascript">
<!-- 
/*
alert("my love");
confirm("ready to leave");
prompt("goodgoodstudy,daydayup","fendou");
*/

/*下面语句执行无反应,firefox
var config='dialogWidth:640px;dialogHeight:480px;dialogTop:100px;dialogLeft:100px;center:no;help:no;resizable:yes;status;no';
window.showModalDialog("www.google.com",window,config);
window.showModalDialog("www.google.com",window,config);
*/
//下面语句执行无反应,firefox
function showDialog(){
	var config='dialogWidth:320;dialogHeight:180px;dialogTop:140px;dialogLeft:250px;center:yes;help:no;resizable:no;status:no';
	showModalDialog("test.html",input1,config);
}
 -->
</script>
<input type="text" id="input1" value="" readonly>
<input type="button" id="selectBtn" onclick="showDialog()" value="select date">
</body>
</html>